package com.w2cx.selenium.page;


import com.sun.org.apache.regexp.internal.RE;
import com.w2cx.selenium.base.DriverBase;
import com.w2cx.selenium.util.Locator;
import org.openqa.selenium.WebElement;

import java.util.List;

public class TalentAuthManagePage extends BasePage {

    public TalentAuthManagePage(DriverBase driver){
        super(driver);
    }


    //获取运营管理菜单
    public WebElement getOperateManageMenu(){
        //return this.getOperateManageMenu();
        List<WebElement> list = elements(Locator.getByLocator("firstMenuList"));
        WebElement element = list.get(5);
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取“达人认证管理”菜单
    public WebElement getTalentAuthManageMenu(){
        WebElement element = element(Locator.getByLocator("talentAuthManageMenu"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取“添加达人”按钮
    public WebElement getAddTalentBtn(){
        WebElement element = element(Locator.getByLocator("addTalentBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取“认证类型”下拉框
    public WebElement getAuthCategoryDownList(){
        WebElement element = element(Locator.getByLocator("authCategoryDownList"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取“认证类型”选项
    public WebElement getAuthCategoryOption(){
        WebElement element = element(Locator.getByLocator("selectTalentAuthCateOption"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取“选择”按钮
    public WebElement getSelectBtn(){
        WebElement element = element(Locator.getByLocator("selectUserBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取用户ID
    public WebElement getSelectedUserID(){
        WebElement element = element(Locator.getByLocator("selectedUserID"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取单选按钮
    public WebElement getFirstUserRadio(){
        WebElement element = element(Locator.getByLocator("firstSelectRadioBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取完成按钮
    public WebElement getOverBtn(){
        WebElement element = element(Locator.getByLocator("overBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取认证称号输入框
    public WebElement getAuthNameInput(){
        WebElement element = element(Locator.getByLocator("authNameInput"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取精通目的地输入框
    public WebElement getMasterDestinationInput(){

        /*List<WebElement> list = elements(Locator.getByLocator("masterDestinationInput"));
        WebElement element = list.get(1);
        System.out.println("找到元素:"+element.getText());
        return element;*/

        WebElement element = element(Locator.getByLocator("masterDestinationInput"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取精通目的地匹配选项
    public WebElement getDestinationOption(){

        WebElement element = element(Locator.getByLocator("selectDestinationOption"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取擅长领域选项
    public WebElement getFieldCheckBoxOption(){
        WebElement element = element(Locator.getByLocator("fieldCheckBox"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取身份认证上传按钮
    public WebElement getUpIDCardAuthImgBtn(){
        WebElement element = element(Locator.getByLocator("upIDCardImgBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取封面图上传按钮
    public WebElement getUpCoverImgBtn(){
        WebElement element = element(Locator.getByLocator("upCoverImgBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取确认按钮
    public WebElement getConfirmBtn(){
        WebElement element = element(Locator.getByLocator("addAuthConfirmBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取用户id
    public WebElement getFirstUserID(){
        WebElement element = element(Locator.getByLocator("firstUserID"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取去审核按钮
    public WebElement getToReviewBtn(){
        WebElement element = element(Locator.getByLocator("toReviewTalentBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取审核按钮
    public WebElement getReviewBtn(){
        WebElement element = element(Locator.getByLocator("talentReviewBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }


    //获取认证等级
    public WebElement getAuthLevelRadio(){
        WebElement element = element(Locator.getByLocator("authLevelRadio"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取确认按钮
    public WebElement getAuthConfirmBtn(){
        WebElement element = element(Locator.getByLocator("authConfirmBtn"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }

    //获取认证状态
    public WebElement getAuthStatus(){
        WebElement element = element(Locator.getByLocator("authStatus"));
        System.out.println("找到元素:"+element.getText());
        return element;
    }



}
